package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.AttrEntity;
import com.atguigu.gulimall.product.vo.AttrEntityVo;
import com.atguigu.gulimall.product.vo.AttrResVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zhuzhu
 * @email 838759460@qq.com
 * @date 2024-04-28 23:03:03
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAtrr(AttrEntityVo attr);

    PageUtils queryPageByCatelogId(Map<String, Object> params, Long catelogId);

    public PageUtils queryPageByCatelogIdV1(Map<String, Object> params, Long catelogId, String attrType);

    AttrResVo getAttrResVoByAttrId(Long attrId);

    void updateAttrDetail(AttrEntityVo attr);

    public List<AttrEntity> getRelationAttrByGroupId(Long attrgroupId);

    List<AttrEntity> getAttrsOfSearchTpye(List<Long> baseAttrIds,Long type);

}

